//---------------------------------------------------------------------------------
#ifndef __CMARIO_H__
#define __CMARIO_H__
//---------------------------------------------------------------------------------
#include "CSprite.h"
//---------------------------------------------------------------------------------
class CMario : public CSprite {
	public:
		typedef enum { tsDroite, tsGauche } TSens;
		
		static CMario* getInstance(void);
		void draw(QPainter* painter, int x, int y, int step);
		void setSens(TSens sens) { this->sens=sens; }
		void setIsMoving(bool isMoving) { this->isMoving=isMoving; }
	private:
		QImage image1, image2, image3;
		TSens sens;
		bool isMoving;
		
		CMario(void);
};
//---------------------------------------------------------------------------------
#endif //__CMARIO_H__
//---------------------------------------------------------------------------------